home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / OS / FWGraphx / Include / FWGrUtil.h < prev    next >
Encoding:
Text File  |  1994-04-21  |  2.2 KB  |  83 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWGrUtil.h
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Creation Date:        3/28/94
  7. //
  8. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef FWGRUTIL_H
  13. #define FWGRUTIL_H
  14.  
  15. #ifndef FWGRDEF_H
  16. #include <FWGrDef.h>
  17. #endif
  18.  
  19. // ----- OpenDoc Includes -----
  20.  
  21. #ifndef _XMPTYPES_
  22. #include <XMPTypes.h>
  23. #endif
  24.  
  25. #ifndef _PLFMDEF_
  26. #include <PlfmDef.h>
  27. #endif
  28.  
  29. // ----- Macintosh Includes -----
  30.  
  31. #if defined(FW_BUILD_MAC) && !defined(__QUICKDRAW__)
  32. #include <QuickDraw.h>
  33. #endif
  34.  
  35. #if defined(FW_BUILD_MAC) && !defined(__WINDOWS__)
  36. #include <Windows.h>
  37. #endif
  38.  
  39. #if defined(FW_BUILD_MAC) && !defined(__TEXTEDIT__)
  40. #include <TextEdit.h>
  41. #endif
  42.  
  43. //==============================================================================
  44. //    •• Forward Declarations
  45. //==============================================================================
  46.  
  47. class XMPShape;
  48. class XMPTransform;
  49. struct FW_CPoint;
  50. struct FW_CRect;
  51.  
  52. //==============================================================================
  53. //    •• Global Utilities
  54. //==============================================================================
  55.  
  56. // ----- Graphic Initialization -----
  57. void InitGraphic();
  58.  
  59. // ----- XMPShape utilities
  60. void        InsetXMPShape(XMPShape *shape, short xInset, short yInset);
  61. void         GetXMPShapeQDBox(XMPShape *shape, FW_SPlatformRect& box);
  62.  
  63. XMPShape*    NewXMPShape();
  64. XMPShape*    NewXMPShape(XMPShape* otherShape);
  65. XMPShape*    NewXMPShape(const FW_CRect& rect);
  66. XMPShape*    NewXMPShape(const FW_SPlatformRect& rect);
  67. XMPShape*    NewXMPShape(FW_PlatformRegion rgn);
  68.  
  69. // ----- XMPTransform utilities
  70. XMPTransform*     NewXMPTransform();
  71. XMPTransform*     NewXMPTransform(XMPTransform* otherTransform);
  72. XMPTransform*     NewXMPTransform(const FW_CPoint& offset);
  73.  
  74. //==============================================================================
  75. //    •• Macintosh Utilities
  76. //==============================================================================
  77.  
  78. #ifdef FW_BUILD_MAC
  79. void         GetPortTextStyle(TextStyle& theTextStyle);
  80. void         SetPortTextStyle(const TextStyle& theTextStyle);
  81. #endif
  82.  
  83. #endif